package com.shenchuangit.wma.ui.panel.entrance;

import javax.swing.*;

/**
 * 入口面板
 * 统一初始化接口
 * @author dpf
 */
public abstract class EntrancePanel extends JPanel {
    /**
     * 初始化标识，防止重复初始化
     */
    private boolean initFlag;
    /**
     * 面板初始化
     */
    public void init() {
        this.initFlag = true;
        this.setVisible(true);
    }

    public boolean isInitFlag() {
        return initFlag;
    }

    public void setInitFlag(boolean initFlag) {
        this.initFlag = initFlag;
    }
}
